/**
 *
 */
package com.hybris.msig.paymentgateway.adapters;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;


/**
 * @author i313922
 *
 */
@Component
public class PaymentAdapterFactory
{
	@Resource
	IPaymentGatewayAdapter telemoneyGatewayAdapter;

	@Resource
	IPaymentGatewayAdapter eNetsGatewayAdapter;

	public IPaymentGatewayAdapter getPaymentGatewayAdapter(final String gtw)
	{
		switch (gtw)
		{
			case "TELE":
				return telemoneyGatewayAdapter;
			case "ENETS":
				return eNetsGatewayAdapter;
			default:
				throw new IllegalArgumentException("unknown gtw");
		}
	}
}